home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Networking / InterMapper 3.0 - PPC.sea / InterMapper 3.0 - PPC / InterMapper™ 3.0-PPC / InterMapper™ 3.0-PPC.rsrc / PrTy_152_com.dartware.tcp.gopher < prev    next >
Encoding:
Text File  |  2000-07-24  |  1.4 KB  |  54 lines

  1. <!-- 
  2.     Gopher (com.dartware.tcp.gopher)
  3.     Copyright © 2000 Dartware, LLC. All rights reserved.
  4. -->
  5.  
  6. <header>
  7.     type            =     "tcp-script"
  8.     package            =     "com.dartware"
  9.     probe_name        =    "tcp.gopher"
  10.     human_name        =    "Gopher"
  11.     version            =     "1.1"
  12.     address_type    =     "IP"
  13.     port_number        =    "70"
  14.     
  15.     old_protocol    =     "8"            # Backward compat. with old numbering scheme.
  16.     old_script        =     "8011"
  17.  
  18. </header>
  19.  
  20. <description>
  21.  
  22. ≤GB≥Internet Gopher Protocol≤P≥
  23.  
  24. The document search and retrieval protocol described in ≤U2≥RFC 1436≤P0≥.  The default TCP port number for Gopher connections is port 70.
  25.  
  26. This script connects to the gopher server and sends a line containing the "selector string".  By default, the selector string is empty and the gopher server returns its top level information as a sequence of lines.  This script only checks that some data is returned by the gopher server, it does not validate the contents.
  27.  
  28. ≤i≥Selector string≤p≥ is the line of data sent to the gopher server.  By default, this should be empty.
  29.  
  30. </description>
  31.  
  32. <parameters>
  33.  
  34. "Selector String"    =    ""
  35.  
  36. </parameters>
  37.  
  38. <script>
  39.  
  40. CONN #60 (connect timeout in secs)
  41. WAIT #30 @IDLE (idle timeout in secs)
  42. SEND "${Selector String}\r\n"
  43. MTCH "."r else goto @DISCONNECT
  44. SKIP "."r #+1
  45. DONE OKAY
  46.  
  47. @IDLE:
  48. DONE DOWN "[Gopher] No data for ${_IDLETIMEOUT} seconds.  Was expecting \"${_STRINGTOMATCH}\". [Line ${_IDLELINE}]"
  49.  
  50. @DISCONNECT:
  51. DONE DOWN "[Gopher] Connection disconnected while expecting \"${_STRINGTOMATCH}\"."
  52.  
  53. </script>
  54.